/**
 * Created by panjiapeng on 2017/7/20.
 */
import { NgModule } from '@angular/core';
import { RouterModule,Routes } from '@angular/router';

import { WorkspaceComponent } from './workspace.component';

export const workspaceRoutes: Routes = [
    {
        path: '',
        component: WorkspaceComponent,
        children: [
            { path: '', redirectTo: 'map', pathMatch: 'full' },
            { path: 'map', loadChildren: '../map/map.module#MapModule' }
        ]
    }
];
@NgModule({
    exports: [ RouterModule],
    imports: [ RouterModule.forChild(workspaceRoutes)]
})
export class WorkspaceRoutesModule {}